.class public Lmyclass/GoodsTypeData;
.super Landroid/widget/BaseAdapter;
.source "GoodsTypeData.java"


# instance fields
.field c:Landroid/content/Context;

.field lf:Landroid/view/LayoutInflater;

.field ls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsTypeBean;",
            ">;"
        }
    .end annotation
.end field

.field m:Lmyapp/MyApp;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Landroid/content/Context;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .param p3, "cc"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lbean/GoodsTypeBean;",
            ">;",
            "Landroid/content/Context;",
            ")V"
        }
    .end annotation

    .prologue
    .line 40
    .local p2, "list":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsTypeBean;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 41
    check-cast p3, Lmyapp/MyApp;

    .end local p3    # "cc":Landroid/content/Context;
    iput-object p3, p0, Lmyclass/GoodsTypeData;->m:Lmyapp/MyApp;

    .line 42
    iput-object p1, p0, Lmyclass/GoodsTypeData;->c:Landroid/content/Context;

    .line 43
    iput-object p2, p0, Lmyclass/GoodsTypeData;->ls:Ljava/util/List;

    .line 44
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lmyclass/GoodsTypeData;->ls:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "position"    # I

    .prologue
    .line 55
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "position"    # I

    .prologue
    .line 61
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 67
    if-nez p2, :cond_0

    .line 68
    iget-object v6, p0, Lmyclass/GoodsTypeData;->c:Landroid/content/Context;

    invoke-static {v6}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v6

    const v7, 0x7f030008

    const/4 v8, 0x0

    invoke-virtual {v6, v7, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 71
    :cond_0
    const v6, 0x7f07005b

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 72
    .local v5, "name":Landroid/widget/TextView;
    iget-object v6, p0, Lmyclass/GoodsTypeData;->ls:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsTypeBean;

    .line 73
    .local v0, "bb":Lbean/GoodsTypeBean;
    invoke-virtual {v0}, Lbean/GoodsTypeBean;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 75
    const v6, 0x7f070060

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 76
    .local v2, "deletetype":Landroid/widget/ImageView;
    const v6, 0x7f07005e

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 77
    .local v3, "ll":Landroid/widget/LinearLayout;
    const v6, 0x7f07005c

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 78
    .local v1, "count1":Landroid/widget/TextView;
    invoke-virtual {v0}, Lbean/GoodsTypeBean;->getNum()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 80
    const v6, 0x7f07005d

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 82
    .local v4, "ll2":Landroid/widget/LinearLayout;
    invoke-virtual {v0}, Lbean/GoodsTypeBean;->getId()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 83
    new-instance v6, Lmyclass/GoodsTypeData$1;

    invoke-direct {v6, p0}, Lmyclass/GoodsTypeData$1;-><init>(Lmyclass/GoodsTypeData;)V

    invoke-virtual {v2, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 95
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    .line 96
    new-instance v6, Lmyclass/GoodsTypeData$2;

    invoke-direct {v6, p0}, Lmyclass/GoodsTypeData$2;-><init>(Lmyclass/GoodsTypeData;)V

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 112
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    .line 113
    new-instance v6, Lmyclass/GoodsTypeData$3;

    invoke-direct {v6, p0}, Lmyclass/GoodsTypeData$3;-><init>(Lmyclass/GoodsTypeData;)V

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 128
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 129
    new-instance v6, Lmyclass/GoodsTypeData$4;

    invoke-direct {v6, p0}, Lmyclass/GoodsTypeData$4;-><init>(Lmyclass/GoodsTypeData;)V

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 146
    return-object p2
.end method
